import moment from 'moment';
export default {
    formatDate:(row, column)=>{
        if(!row[column.property]) return '';
        return moment.unix(Number(row[column.property])).format('YYYY-MM-DD');
    },
    formatDateTime:(row, column)=>{
        if(!row[column.property]) return '';
        return moment.unix(Number(row[column.property])).format('YYYY-MM-DD hh:mm:ss');
    }
}